<%@ page import="sell.DbTest" %>
<%@ page language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>test-home</title>
    <link rel="stylesheet" href="css/index.css">
    <style>
        .t{
            margin: 20px auto;
            width: 80%;
            height: 50%;
        }
        .t th,td{
            border:1px solid navajowhite;
            text-align: center;
            padding: 3px ;
        }
    </style>
</head>
<body>
<table class="t">
    <tr>
        <th>ID</th>
        <th>名字</th>
        <th>价格</th>
        <th>基本操作</th>
    </tr>
    //单个对象时
    <tr>
        <td>${book.id}</td>
        <td>${book.name}</td>
        <td>${book.price}</td>
        <td><a href="show.do?action=delete">删除</a></td>

    </tr>
    <%--分页--%>
   <%-- <c:forEach items="${book}" var="book">
    <tr>
        <td>${book.id}</td>
        <td>${book.name}</td>
        <td>${book.price}</td>
        <td><a href="show.do?action=delete">删除</a></td>

    </tr>
    </c:forEach>--%>
</table>



</body>
</html>